package com.fh.pms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fh.pms.entity.PmsBrand;
import com.fh.pms.mapper.PmsBrandMapper;
import com.fh.pms.service.IPmsBrandService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author F
 * @since 2021-05-20
 */
@Service
public class PmsBrandServiceImpl extends ServiceImpl<PmsBrandMapper, PmsBrand> implements IPmsBrandService {



    @Override
    public void updateShowStatus(Long id, Integer status) {
        PmsBrand brand = getById(id);
        brand.setShowstatus(status);
        updateById(brand);
    }

    @Override
    public void updateFactoryStatus(Long id, Integer factoryStatus) {
        PmsBrand brand = getById(id);
        brand.setFactorystatus(factoryStatus);
        updateById(brand);
    }


}
